import Mock from 'mockjs'
import banner from './data/banner.json'
import floor from './data/floor.json'
import address from './data/address.json'


Mock.mock('/mock-api/banner', 'get', () => {
    return {
        code: 200,
        message: '成功',
        data: banner,
        ok: true
    }
})


Mock.mock('/mock-api/floor', 'get', () => {
    return {
        code: 200,
        message: '成功',
        data: floor,
        ok: true
    }
})

Mock.mock('/mock-api/address', 'get', () => {
    return {
        code: 200,
        message: '成功',
        data: address,
        ok: true
    }
})